package com.imooc.product.dataobject;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Description: 商品信息实体类
 * Project: product <br />
 * ClassName: ProductInfo <br />
 * Copyright: Copyright (c) 2018 deshang<br />
 *
 * @author Wang Shaopeng
 * @date 2018/12/4 10:38
 * @modifier
 * @modifyContent
 */
@Data
// @Table(name = "T_proxxx")
@Entity
public class ProductInfo {

    @Id
    private String productId;

    // 商品名称
    private String productName;

    // 单价
    private BigDecimal productPrice;

    // 库存
    private Integer productStock;

    // 描述
    private String productDescription;

    // 小图
    private String productIcon;

    // 商品状态,0正常1下架
    private Integer productStatus;

    // 类目编号
    private Integer categoryType;

    // 创建时间
    private Date createTime;

    // 修改时间
    private Date updateTime;
}
